<?php
/**
 * 定义后台管理界面左侧的菜单
 *
 * @copyright Copyright (c) 2004 - 2009 iTeam
 * @author sunnycoolboy
 * @package leadtone
 * @version $Id: Menu.php 2009-04-20
 */
$modelClasses =& FLEA::getSingleton('Model_Categories');

$catalog = array();

$menu = array();
$menu[] = array('用户列表', 'BoUser', 'Index');
$catalog[] = array('用户管理', $menu, USER_ADMIN);

$menu = array();
$menu[] = array('工资统计', 'BoAttendance', 'Index');
$menu[] = array('工资表历史', 'BoAttendance', 'History');
$catalog[] = array('工资管理', $menu, CLASSES_ADMIN);

//规则管理
$menu = array();
$menu[] = array('学历规则', 'BoFormula', 'Education', array('access' => CLASSES_ADMIN));
$menu[] = array('职位规则', 'BoFormula', 'Position', array('access' => CLASSES_ADMIN));
$menu[] = array('特殊规则', 'BoFormula', 'Special', array('access' => CLASSES_ADMIN));
$menu[] = array('工龄工资', 'BoFormula', 'Seniority', array('access' => CLASSES_ADMIN));
$menu[] = array('晚班津贴', 'BoFormula', 'Night', array('access' => CLASSES_ADMIN));
$catalog[] = array('规则设置', $menu, CLASSES_ADMIN);

//修改密码
$menu = array();
$menu[] = array(_T('ui_u_change_password_menu'), 'BoPreference', 'changePassword');
$catalog[] = array(_T('ui_u_preference_catalog'), $menu, PASSWORD_ADMIN);

//分类管理
$menu = array();
$menu[] = array('<span style="color: red;">分类维护</span>', 'BoArticleClasses', '', array('access' => CLASSES_ADMIN));
$menu[] = array('<span style="color: red;">系统配置</span>', 'BoConfig', '', array('access' => CLASSES_ADMIN));
$catalog[] = array(_T('ui_w_classes'), $menu, CLASSES_ADMIN);


return $catalog;
